.class Lcom/waiqin365/lightapp/chexiao/ah;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ah;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9

    const v4, 0x7f08013b

    const/high16 v2, 0x41700000    # 15.0f

    const/4 v6, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ah;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/bl;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/bl;->b()Z

    move-result v2

    if-eqz v2, :cond_6

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bl;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "isSeniorVisit"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_1

    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v3, "type"

    sget-object v4, Lcom/fiberhome/gaea/client/a/e;->l:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    const-class v4, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v4, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordDetailActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v4, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v4, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v4

    const-string/jumbo v5, "reinit_activity"

    invoke-virtual {v4, v5, v2, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    :cond_1
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bl;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "picPaths"

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->q(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v2, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->finish()V

    goto :goto_0

    :pswitch_2
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v7, v1

    check-cast v7, Lcom/waiqin365/lightapp/chexiao/b/a/aq;

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/chexiao/b/a/aq;->b()Z

    move-result v1

    if-eqz v1, :cond_4

    const-string/jumbo v1, "1"

    iget-object v3, v7, Lcom/waiqin365/lightapp/chexiao/b/a/aq;->b:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, v7, Lcom/waiqin365/lightapp/chexiao/b/a/aq;->d:Ljava/util/List;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->a(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;Ljava/util/List;)Ljava/util/List;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->n(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)Ljava/util/List;

    move-result-object v1

    if-eqz v1, :cond_3

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->n(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_3

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->o(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)Landroid/widget/LinearLayout;

    move-result-object v8

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->n(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)Ljava/util/List;

    move-result-object v1

    invoke-static {}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->b()I

    move-result v3

    invoke-static {}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->a()I

    move-result v5

    move v4, v2

    invoke-static/range {v0 .. v6}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Landroid/content/Context;Ljava/util/List;FIFIZ)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v8, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :goto_1
    iget-object v1, v7, Lcom/waiqin365/lightapp/chexiao/b/a/aq;->e:Lcom/waiqin365/lightapp/chexiao/c/t;

    if-eqz v1, :cond_2

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->p(Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v1

    iget-object v2, v7, Lcom/waiqin365/lightapp/chexiao/b/a/aq;->e:Lcom/waiqin365/lightapp/chexiao/c/t;

    iget-object v2, v2, Lcom/waiqin365/lightapp/chexiao/c/t;->k:Ljava/util/List;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setValueItems(Ljava/util/List;)V

    :cond_2
    new-instance v1, Lcom/waiqin365/lightapp/chexiao/ai;

    invoke-direct {v1, p0, v0}, Lcom/waiqin365/lightapp/chexiao/ai;-><init>(Lcom/waiqin365/lightapp/chexiao/ah;Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Lcom/waiqin365/lightapp/chexiao/d/d;)V

    goto/16 :goto_0

    :cond_3
    const v1, 0x7f0c052f

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    :cond_4
    iget-object v1, v7, Lcom/waiqin365/lightapp/chexiao/b/a/aq;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_5
    invoke-static {v0, v1, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->finish()V

    goto/16 :goto_0

    :cond_6
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bl;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/chexiao/CXDFHWActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_7
    invoke-static {v0, v1, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1e
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
